<?php
  if(stristr($buffer,chr(1)."ACTION ") and stristr(strtolower($buffer),strtolower($nickname))){
    $commandSent=true;
    //SendCommand(str_ireplace($nickname,$sender,$buffer));
    fputs($server['SOCKET'],str_ireplace($nickname,$sender,$buffer)."\r\n");
  }
?>